package com.itheima.patterns.behaviorpattern.strategy;

public class SalesMan {
    //聚合策略类对象
    private Strategy strategy;
    
    public SalesMan(Strategy strategy){
        this.strategy = strategy;
    }
    
    //向客户展示促销活动
    public void salesManShow(){
        strategy.show();
    }
    
    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
}